package inventory.model;

import dto.MaterialMaster;
import dto.MaterialSpecification;

public class Material 
{
	private MaterialMaster materialMasterObject;
	private MaterialSpecification spec;
	
	public Material() 
	{
		
	}
	
	public Material(MaterialMaster material, MaterialSpecification spec) 
	{
		super();
		this.materialMasterObject = material;
		this.spec = spec;
	}
	
	//******************************************************************************
	
	public MaterialMaster getMaterial() {
		return materialMasterObject;
	}
	public void setMaterial(MaterialMaster material) {
		this.materialMasterObject = material;
	}
	public MaterialSpecification getSpec() {
		return spec;
	}
	public void setSpec(MaterialSpecification spec) {
		this.spec = spec;
	}
	
	public String getMname()
	{
		return materialMasterObject.getmName();
	}
	
	public String getSpecs()
	{
		return spec.getmSpecs();
	}
	
	public String getMCode()
	{
		return spec.getmCode();
	}
	public String getCatCode()
	{
		return materialMasterObject.getCatCode();
	}
	
	public String getUnit()
	{
		return materialMasterObject.getmUnit();
	}
	

}
